

import Layout from '@/layout'

const goodsRouter = {
  path: '/goods',
  component: Layout,
  redirect: '/goods/list',
  name: 'goods',
  meta: {
    title: '商品',
    icon: 'el-icon-shopping-cart-full'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/goods/list'),
      name: 'goodsList',
      meta: { title: '商品管理' }
    },
    {
      path: 'list1',
      component: () => import('@/views/goods/type'),
      name: 'goodsList1',
      meta: { title: '商品分类' }
    },
    {
      path: 'list2',
      component: () => import('@/views/goods/two'),
      name: 'goodsList2',
      meta: { title: '两表显示' }
    },
    {
      path: 'list3',
      component: () => import('@/views/goods/recycle'),
      name: 'goodsList2',
      meta: { title: '回收站' }
    },
    {
      path: 'list4',
      component: () => import('@/views/goods/img'),
      name: 'goodsList2',
      meta: { title: '图片' }
    },
    {
      path: 'list5',
      component: () => import('@/views/goods/sku'),
      name: 'goodsList2',
      meta: { title: 'SkU' }
    },
    {
      path: 'list6',
      component: () => import('@/views/goods/sku1'),
      name: 'goodsList2',
      meta: { title: 'SkU1' }
    }
  ]
}
export default goodsRouter
